import axios  from "axios";
import type {InternalAxiosRequestConfig} from 'axios';

const service = axios.create({
    baseURL:process.env.REACT_APP_BASEURL,
    timeout:20000
});

// 请求拦截器
service.interceptors.request.use((config:InternalAxiosRequestConfig)=>{



    return config;
})

// 响应拦截器
service.interceptors.response.use((res)=>{


    return res;
},(err)=>{


})


export default service;